package com.huopaolan.yohuoshop.Mvp.Contract;

import com.huopaolan.lib_core.Mvp.Model.IModel;
import com.huopaolan.lib_core.Mvp.View.IView;
import com.huopaolan.yohuoshop.Bean.BaseEntity;
import com.huopaolan.yohuoshop.Bean.CategoryAllGoodsEntity;
import com.huopaolan.yohuoshop.Bean.CategoryGoodsEntity;

import java.util.Map;

import io.reactivex.Observable;

public interface CategoryFragmentContract {
    //继承自IView的接口对应
    interface ICategoryView extends IView {
        void goodsSuccess(CategoryGoodsEntity entity);
        void goodsAllSuccess(CategoryAllGoodsEntity entity);
    }

    //继承自IModel的接口
    interface ICategoryModel extends IModel {
        Observable<CategoryAllGoodsEntity> requestGoodsAll(String request);
        Observable<CategoryGoodsEntity> requestGoods(String request);
    }
}
